/**
 * 
 */
package com.onexercise.zx;

/**
 * @author:ZX202
 * @time:4:13:53 PM
 */
public class Calc {
static int sum=0;
	public void add(int a) {
		 sum+=a;
	}
	public void sup(int b) {
		 sum-=b;
	}
	public void div(int c) {
		sum/=c;
	}
	public void mul(int d) {
		sum*=d;
	}
	public void clear() {
		 sum=0;
	}
	public void print() {
		System.out.println(sum);
	}

	public static void main(String[] args) {
		Calc c = new Calc();
		c.add(20);
		c.print();
		c.sup(6);
		c.print();
		c.mul(5);
		c.print();
		c.div(2);
		c.print();
		c.clear();
		c.print();
	}
}

